package Presentation;

import java.awt.BorderLayout;

public abstract class Onglet extends javax.swing.JPanel {

    private final FenetrePrincipale fp;

    // Barre de bouton commune à tout les onglets
    private BarreBouton barreBouton;

    public Onglet(FenetrePrincipale fp) {
        this.fp = fp;
        initComponents();
    }

    private void initComponents() {
        this.setLayout(new BorderLayout());

        /**
         * PAGE_START
         */
        this.barreBouton = new BarreBouton(fp, this);
        this.add(this.barreBouton, BorderLayout.PAGE_START);
    }

    public FenetrePrincipale getFP() {
        return fp;
    }

    public BarreBouton getBB() {
        return barreBouton;
    }

    public abstract void rafraichir();

    public abstract void help();
}
